
#ifndef __TEXTURE_H__
#define __TEXTURE_H__

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>

class Texture {
   
public:
   Texture();
   
   Texture(const char *filename, GLuint target = GL_TEXTURE_2D);
   
   ~Texture();
   
   void bind();
   
private:
   
   bool load(const char *filename);
private:
   
   int width, height;
   
   GLuint target;
   GLuint type;
   GLuint internalformat;
   GLuint format;
   GLuint id;
};


#endif
